<?php
/**
 * Blog/Post-series.php
 * --------------------------------------------------
 * Show a single post
 */

 $page->title = $page->post->title;
 $page->date = $page->post->date;
?>

<article id="blog-post" class="sermon">

  <figure class="left">
    <img src="<?=  $page->post->series['image']['chip'] ?>" align="left">
  </figure>

  <aside class="right">
    <?php snippet('addthis.php', array('append_class'=>'right')) ?>
  </aside>

  <h1 class="page-title"><?= html( $page->post->title ) ?></h1>

  <?= html( $page->post->article() ) ?>

  <hr>

  <h2>Sermons</h2>

  <?php echo module( 'message', 'show', array(
    'page'=>$page,
    'yaml'=>$page->post->series,
    'template' => 'list'
  )) ?>

  <footer>

    <p>
      <time pubdate datetime="<?= date('Y-m-d',$page->post->time()) ?>">published on:
      <?= NRHCdate( $page->post->date()) ?></time>
    </p>

  </footer>

</article><!-- #blog-post -->

<ul class="breadcrumbs">
  <li><a href="<?= url('/') ?>">Home</a></li>
  <li><a href="<?= url('/media/series') ?>">Media</a></li>
  <li class="current"><a href="<?= $page->url ?>"><?= $page->post->title ?></a></li>
</ul>
